<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2018/12/23 0023
  Time: 9:24
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%
    request.setCharacterEncoding("utf-8");
%>
<html>
<head>
    <title>C-if条件判断标签</title>
</head>
<body>
<%--当表单值不存在或为null时将表单显示出来--%>
<c:if test="${empty param.name}" var="judge">

    <form action="" method="post">
        <input type="text" name="name">
        <input type="submit" >
    </form>

</c:if>
<%--当表单不为null时说明表单信息已经提交--%>
<c:if test="${!judge}">
    欢迎${param.name}来到华为!
</c:if>


</body>
</html>
